﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ksyx;
using System.Web.Services;

namespace huaguwang.hgmanage
{
    public partial class updatepwd : PageBaseAdmin
    {
        ksyx.User.Dal.D_AdminUserExp _dal = new ksyx.User.Dal.D_AdminUserExp();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                var adms = this.GetUserItemInfo();
                if (adms != null)
                {
                    this.lbUserName.Text = adms.loginName+ "("+adms.RealName+")";
                }
            }
        }

        [WebMethod]
        public static bool CheckPwd(string pwd)
        {
            //var adms = (T_AdminUser)System.Web.HttpContext.Current.Session["UserItem"];
            //var flag = adms.LoginPwd.Equals(pwd.Exp_Encrypt());
            //return !flag;
            return false;
        }

        protected void btnAdd_Click(object sender, EventArgs e)
        {
            var model = this.GetUserItemInfo();
            //model.LoginPwd = this.txtPwd.Text.Exp_Encrypt();
            //_dal.Update(model);
        }
    }
}
